﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace VehicleMaintenance.Models
{

    public class CarDBContext : DbContext
    {
		//public CarDBContext() : base("Car") { }

        public DbSet<User> Users { get; set; }

        public DbSet<BaseInfo> BaseInfo { get; set; }

        public DbSet<Staff> Staff { get; set; }

        public DbSet<Customer> Customer { get; set; }

        public DbSet<CustomerType> CustomerType { get; set; }

        public DbSet<CarInfo> CarInfo { get; set; }

        public DbSet<CarType> CarType { get; set; }

        public DbSet<Goods> Goods { get; set; }

        public DbSet<GoodType> GoodType { get; set; }

        public DbSet<MaintenanceCategories> MaintenanceCategories { get; set; }

        public DbSet<PurchaseBill> PurchaseBill { get; set; }

        public DbSet<PurchaseReturnsBill> PurchaseReturnsBill { get; set; }

        public DbSet<SalesBill> SalesBill { get; set; }

        public DbSet<SalesReturnsBill> SalesReturnsBill { get; set; }

        public DbSet<RecipientsBill> RecipientsBill { get; set; }

        public DbSet<MainBill> MainBill { get; set; }

		public DbSet<DamageBill> DamageBill { get; set; }

        public DbSet<OtherExpenditure> OtherExpenditure { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
